﻿using EntityModels.E09.Files;

namespace IApplicationServices
{
    public interface IFileHashService
    {
        /// <summary>
        /// 查询这个hash的文件
        /// </summary>
        /// <param name="hash"></param>
        /// <returns></returns>
        Task<FileHash> FileByHashAsync(string hash);

        /// <summary>
        /// 创建一条hash文件
        /// </summary>
        /// <param name="fileHash"></param>
        /// <returns></returns>
        Task<FileHash> CreateAsync(FileHash fileHash);
    }
}
